<template>
  <div>
    <!-- 搜索栏-->
    <a-form layout="inline" >
      <a-form-item label="Price">
           <span>
            <a-input
                type='text'
                style="width: 63%; margin-right: 2%;"
            />
            <a-select
                style="width: 32%"
            >
              <a-select-option value='rmb'>RMB</a-select-option>
              <a-select-option value='dollar'>Dollar</a-select-option>
            </a-select>
          </span>
        <price-input
            v-decorator="[
          'price',
          {
            initialValue: { number: 0, currency: 'rmb' },
          },
        ]"
        />
      </a-form-item>
      <a-form-item>
        <a-button type="primary" html-type="submit">
          Submit
        </a-button>
      </a-form-item>
    </a-form>
    <a-table bordered >
      <template slot="name" slot-scope="text, record">
        <editable-cell/>
      </template>
      <template slot="operation" slot-scope="text, record">
        <a-popconfirm
            title="Sure to delete?"
        >
          <a href="javascript:;">Delete</a>
        </a-popconfirm>
      </template>
    </a-table>
  </div>
</template>
<script>
import popUp from "@/utils/popUp";
export default {
  data() {
    return {
      //数据
      datas: []
    }
  },
  created() {
    //数据初始化
    this.getDatas();
  },
  methods: {
    //获取数据
    getDatas() {
      this.$axios({
        method:"get",
        url:"https://mallapi.duyiedu.com//products/all",
        data:{
          appkey:"zhoujiangyun_1618415564670",
        }
      }).then(resp=>{
        console.log(resp)
      }).catch(err=>{
        this.warning(err);
      })
    }
  },
  ...popUp
};
</script>
<style>
.editable-cell {
  position: relative;
}

.editable-cell-input-wrapper,
.editable-cell-text-wrapper {
  padding-right: 24px;
}

.editable-cell-text-wrapper {
  padding: 5px 24px 5px 5px;
}

.editable-cell-icon,
.editable-cell-icon-check {
  position: absolute;
  right: 0;
  width: 20px;
  cursor: pointer;
}

.editable-cell-icon {
  line-height: 18px;
  display: none;
}

.editable-cell-icon-check {
  line-height: 28px;
}

.editable-cell:hover .editable-cell-icon {
  display: inline-block;
}

.editable-cell-icon:hover,
.editable-cell-icon-check:hover {
  color: #108ee9;
}

.editable-add-btn {
  margin-bottom: 8px;
}
</style>


